<style>
    .layui-iconpicker-body.layui-iconpicker-body-page .hide {
        display: none;
    }
    .select_a {
            color: #009688;
            padding: 2px;
            margin: 2px;
            border: #009688 1px dashed;
        }
</style>
<link rel="stylesheet" href="__STATIC__/plugs/lay-module/autocomplete/autocomplete.css?v={$version}" media="all">
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
                <div class="layui-form-item">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-block">
                <input type="text" id="name" name="name" readonly class="layui-input" lay-reqtext="请输入名称" placeholder="请输入名称" value="{$row.name|default=''}">
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">颜色</label>
            <div class="layui-input-block">
                <input type="hidden" name="my_color" readonly value="{$row.my_color}">
                <div id="my_color" value="{$row.my_color}" class="color"></div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开关</label>
            <div class="layui-input-block">
                <input name="kaiguan" value="1" type="checkbox" class="switch" lay-skin="switch" lay-text="开启|关闭" {if $row.kaiguan==1}checked=""{/if}>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">时间</label>
            <div class="layui-input-block">
                <input type="text" readonly name="shijian" class="layui-input datetime" id="shijian" {if is_numeric($row.shijian)}value="{:date('Y-m-d H:i:s',$row.shijian)}" {else}value="{$row.shijian}"{/if}>
            </div>
        </div>

    </form>
</div>
<script>
    var parameter = '{$parameter|raw|default=""}';
</script>